<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 鸣人对象
        var obj = new Object()
        obj.uname = '鸣人'
        obj.sex = '妖'
        obj.age = '100岁'
        obj.skill = function () {
            console.log('影分身术');
        }
        console.log(obj.uname);
        console.log(obj['sex']);//用数组方式调用对象必须加引号
        console.log(obj.age);
        obj.skill()//对象方法调用比较加小括号

    </script>
</head>
<body>
    
</body>
</html>